package com.yonyou.iuap.jxzy.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;

import com.yonyou.iuap.baseservice.persistence.mybatis.mapper.GenericExMapper;
import com.yonyou.iuap.jxzy.entity.WastePaperHeadVO;
import com.yonyou.iuap.mybatis.anotation.MyBatisRepository;

@MyBatisRepository
public interface WastePaperHeadMapper extends GenericExMapper<WastePaperHeadVO>{

	/**保存进口废纸表头*/
	public int insertWastePaperHeadVO(WastePaperHeadVO wastepaperhead);
	
	/*public List<WastePaperHeadVO> queryWastePaperHeadVO(@Param(value="grossbegintime")String grossbegintime,
			@Param(value="grossendtime")String grossendtime,@Param(value="ischeck")String isCheck);*/
	/**app进口废纸查询表头vo*/
	public List<WastePaperHeadVO> queryWastePaperHeadVO(@Param(value="searchMap") Map<String, Object> map);
	
	/**删除待检测的进口废纸表头*/
	public int deleteWastePaperHeadVO(WastePaperHeadVO wastepaperhead);
	
	/**审核*/
	public int verifypound(@Param(value="poundlist") List<WastePaperHeadVO> poundlist);
	
	/**取消审核*/
	public int cancelverifypound(@Param(value="poundlist") List<String> poundlist);

	/**短重范围*/
	public int rangeweight(@Param(value="poundNo") String poundNo,@Param(value="weightData") String weightData);

	/**更新iuap表头*/
	public int updateHeadvo(WastePaperHeadVO headvo);

	/**短重范围按钮权限*/
	public String queryrangeweightAuthorities(@Param(value="userName")String userName);

	public int updatePoundbill(WastePaperHeadVO headvo);

	/**更新检验员到磅单**/
	public int updatePoundInspector(WastePaperHeadVO wastepaperhead);
	
	/**更新主数量到磅单子表**/
	public int updatePoundbill_b(WastePaperHeadVO wastepaperhead);

	/**查询已经推单的磅单*/
	public List<WastePaperHeadVO> queryPushPound(@Param(value="poundlist") List<String> poundlist);

	public int delFileUrl(WastePaperHeadVO headvo);

}
